<template>
	<view class="container">
		<view class="uni-margin-wrap">
			<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval"
				:duration="duration">
				<swiper-item>
					<view class="swiper-item uni-bg-red">
						<image
							src="https://th.bing.com/th/id/OIP.ezQZwMFMd12ZBhzXCdNqagHaE7?w=271&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
						</image>
					</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item uni-bg-green">
						<image
							src="https://th.bing.com/th/id/OIP.kpwRv_JfrpohD4G9z9RGggHaE8?w=266&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
						</image>
					</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item uni-bg-blue">
						<image
							src="https://th.bing.com/th/id/OIP.3sHh6dYm0pQSNKYiYwAlUwHaFj?w=205&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7">
						</image>
					</view>
				</swiper-item>
			</swiper>
		</view>
		<view class="info">
			<text>小王汽车美容店</text>
			<view>
				<uni-rate :readonly='true' v-model="rateValue" @change="onChange" />
				<view class="pingfen">{{rateValue}}分</view>
				<text class="xaioliang"><text style="font-weight: bold;">销量</text>：322</text>
			</view>
			<view class="yingyeshijian">营业时间:<text>周一至周五</text><text>09:00~22:00</text></view>
			<view class="location">
				山阳区人民中路32号
				<navigator class="location1" url="">
					<image src="../../static/image/地址.jpg"> </image>
				</navigator>
			</view>
		</view>
		<view class="fuwu">
			<text>服务</text>
			<view class="fuwuxaingmulist">
				<view class="fuwuxaingmuitem">
					<label>
						<checkbox value="cb" activeBackgroundColor="#1684FC" borderColor="#DFDFDF" color="#FFCA3E"
							style="transform:scale(0.7)" />精洗
					</label>
					<view style="padding-top: 5rpx;"><text>￥199</text><text>￥299</text></view>
					<text>服务介绍服务介绍服务介绍服务介绍服务介绍服务介绍服务介绍服务介绍服务介绍</text>
				</view>
			</view>

		</view>
		<view class="fuwupingjia">
			<text>服务评价</text>
			<view class="fuwupingjiaitem">
				<image class="headimg" src="../../static/logo.png"></image>
				<view>
					<text>李**</text>
					<uni-rate :readonly='true' v-model="pinglunRateValue" />
				</view>
				<text>2022-09-10</text>
				<view class="pingjianeirong">
					<text>服务评价内容</text>
					<view>
						<image src="../../static/uni.png"></image>
						<image src="../../static/uni.png"></image>
					</view>
				</view>
			</view>
			<view class="fuwupingjiaitem">
				<image class="headimg" src="../../static/logo.png"></image>
				<view>
					<text>李**</text>
					<uni-rate :readonly='true' v-model="pinglunRateValue" />
				</view>
				<text>2022-09-10</text>
				<view class="pingjianeirong">
					<text>服务评价内容</text>
					<view>
						<image src="../../static/uni.png"></image>
						<image src="../../static/uni.png"></image>
					</view>
				</view>
			</view>
			<view class="fuwupingjiaitem">
				<image class="headimg" src="../../static/logo.png"></image>
				<view>
					<text>李**</text>
					<uni-rate :readonly='true' v-model="pinglunRateValue" />
				</view>
				<text>2022-09-10</text>
				<view class="pingjianeirong">
					<text>服务评价内容</text>
					<view>
						<image src="../../static/uni.png"></image>
						<image src="../../static/uni.png"></image>
					</view>
				</view>
			</view>
		</view>
		<view class="lianxikefu" @click="toggle('bottom')">
			<image src="../../static/image/联系客服.jpg"></image>
			<text>联系客服</text>
		</view>
		<!-- 普通弹窗 -->
		<uni-popup ref="popup" background-color="#fff">
			<view class="popup-content">
				<text class="text">
				</text>
				<view style="width: 90%; text-align: center;font-size:50rpx;line-height:50rpx;margin-bottom: 10rpx;">
					18893029302
				</view>
				<view
					style="border-top: solid 5rpx #F3F3F3; width: 90%; text-align: center; font-size:50rpx;height: 80rpx;line-height:80rpx;border-bottom: 2rpx solid #FFFFFF ;margin-bottom: 10rpx;">
					呼叫
				</view>
				<view
					style="border-top: solid 5rpx #F3F3F3;width: 90%; text-align: center;font-size:50rpx;height: 50rpx;line-height:50rpx;border-bottom: 2rpx solid #FFFFFF;"
					@click="cancel">
					取消
				</view>
			</view>
		</uni-popup>
		<button class="mini-btn" style="background-color: #F6390D;" type="primary" @click="xiadan">立即下单</button>
	</view>
</template>

<script>
	export default {
		components: {

		},
		data() {
			return {
				type: 'bottom',
				background: ['color1', 'color2', 'color3'],
				indicatorDots: false,
				autoplay: false,
				interval: 2000,
				duration: 500,
				rateValue: 3,
				pinglunRateValue: 5,
			}
		},
		onLoad() {
			
		},
		methods: {
			xiadan(){
				uni.navigateTo({
					url:"/pages/confirmTheOrder/confirmTheOrder"
				})
			},
			toggle(type) {
				this.type = type
				// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
				this.$refs.popup.open(type)
			},
			change(e) {
				console.log('当前模式：' + e.type + ',状态：' + e.show);
			},
			handleBooking() {
				// 处理预约逻辑
				console.log("立即下单");
			},
			cancel() {
				this.$refs.popup.close()
			},
		}
	}
</script>

<style>
	.container {
		background-color: #ffffff;
	}

	.uni-margin-wrap {
		width: 100%;
	}

	.swiper {
		width: 100%;
		height: 430rpx;
	}

	.swiper-item {
		display: block;
		height: 430rpx;
		line-height: 300rpx;
		text-align: center;
	}

	.swiper-list {
		margin-top: 40rpx;
		margin-bottom: 0;
	}

	.uni-common-mt {
		margin-top: 60rpx;
		position: relative;
	}

	.info>view {
		margin-top: 10rpx;
		display: flex;
		/* align-items: center;
	    position: absolute; */
		/* right: 20rpx; */
	}

	.uni-padding-wrap {
		width: 550rpx;
		padding: 0 100rpx;
	}

	.swiper-item image {
		width: 100%;
		height: 100%;
	}

	.info>text {
		font-weight: bold;
		font-size: 30rpx;
		margin-right: 10rpx;
	}

	.info {
		width: 90%;
		padding: 20rpx;
		border-bottom: solid 5rpx #efefef;
	}


	.pingfen {
		margin-left: 10rpx;
	}

	.xaioliang {
		margin-left: 90rpx;
	}

	.yingyeshijian {
		margin-top: 10rpx;
	}

	.yingyeshijian>text {
		margin-left: 20rpx;
	}

	.location {
		margin-top: 20rpx;
	}

	.location1 {
		margin-left: 30rpx;
		margin-top: -15rpx;
	}

	.location1>image {
		width: 60rpx;
		height: 60rpx;
	}

	.fuwu {
		width: 90%;
		padding: 20rpx;
		margin-top: 30rpx;
	}

	.fuwu>text {
		font-size: 30rpx;
		font-weight: bold;
		margin-left: 13rpx;
	}

	.fuwuxaingmuitem>view>text {
		/* float: right; */
		font-weight: bold;
		margin-left: 30rpx;
	}

	.fuwuxaingmuitem>text {

		/* margin-left: 30rpx; */
	}

	.fuwuxaingmuitem>view>text:nth-child(2) {
		text-decoration: line-through;
		color: red;
		font-size: 25rpx;
	}

	.fuwuxaingmulist {
		border-bottom: solid 1rpx #efefef;
		padding: 15rpx;
		padding-left: 30rpx;
	}

	.fuwupingjia {
		margin-top: 30rpx;
	}

	.fuwupingjia>text {
		font-size: 30rpx;
		font-weight: bold;
		margin-left: 33rpx;
	}

	.fuwupingjiaitem {
		padding: 28rpx;
	}

	.headimg {
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
	}

	.fuwupingjiaitem>view {
		display: inline-block;
		margin-left: 38rpx;
	}

	.fuwupingjiaitem>text {
		float: right;
		font-weight: bold;
	}

	.pingjianeirong {
		padding-top: 20rpx;
		padding-left: 75rpx;
	}

	.pingjianeirong>view>image {
		padding: 10rpx 12rpx;
		width: 130rpx;
		height: 120rpx;
	}

	.mini-btn {
		position: fixed;
		bottom: 0;
		right: 1%;
		margin-right: 3%;
		width: 30%;
		border-radius: 0%;
	}

	.mini-btn1 {
		position: fixed;
		bottom: 0;
		right: 0;
		margin-right: 3%;
		/* margin-left: 15%; */
		width: 45%;
		border-radius: 60rpx;
	}

	.popup-content {
		/* padding: 25rpx; */
	}

	.popup-content>text {
		display: block;
		background-color: #EFEFEF;
		padding: 25rpx;
		border-bottom: solid 6rpx #DFDFDF;
	}

	.popup-content>view {
		padding: 25rpx;

	}

	.popup-content>view>view {
		border-bottom: solid 5rpx #DFDFDF;
		padding: 15rpx;
	}

	.popup-content>view>view:nth-child(3) {
		border-bottom: none;
	}

	.popup-content>view>view>text {
		float: right;
		margin-right: 50rpx;
		font-weight: bold;
	}

	.fuwudingdanList {
		margin-bottom: 30rpx;
	}

	.lianxikefu {
		position: fixed;
		bottom: 0;
		left: 3%;
		margin-right: 3%;
		background-color: #ffffff;
		text-align: center;
	}

	.lianxikefu>image {
		height: 45rpx;
		width: 50rpx;
		margin-left: -8rpx;
	}

	.lianxikefu>text {
		display: block;
		margin-top: -15rpx;
	}
</style>